package ua.pp.bizon.yandex.jmx;

import ua.pp.bizon.yandex.api.QueryMBean;

public interface IJMXService {

	/**
	 * 
	 * @return local query if service started locally; remote query - remotely
	 */
	QueryMBean getQuery();

	/**
	 * 
	 * @param connect
	 *            - if false and service not found - start locally; if true -
	 *            local service is not started
	 * @param connect
	 * @return true if service was found or start5d
	 */
	boolean init(boolean asService, boolean connect);
}
